# -*- coding: utf-8 -*-
from PyQt4 import QtGui, QtCore
import sys


class MainWindow(QtGui.QWidget):
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setWindowTitle("s")

        ly = QtGui.QGridLayout(self)

        self.infomsg = QtGui.QLabel(u"......提示信息......")
        font = QtGui.QFont()
        font.setBold(True)
        palette = QtGui.QPalette()
        color = QtGui.QColor(255, 0, 0)
        palette.setColor(QtGui.QPalette.WindowText, color)
        self.infomsg.setFont(font)
        self.infomsg.setPalette(palette)

        ly.addWidget(self.infomsg, 2, 1)


app = QtGui.QApplication(sys.argv)
main = MainWindow()
main.show()
app.exec_()